# -*- coding:utf-8 -*-

from com.mat.rpa.utils.globalConstants import GlobalConstants
from com.mat.rpa.views.workWindow.leftPanel.directiveTree import treeItem
from . import mailOperationConstants
class MailOperationSubDirectiveTree(treeItem.TreeItemWithID):
    def __init__(self, parent):
        super(MailOperationSubDirectiveTree, self).__init__(parent)
        self.createMailOperationTreeNode()

    def createMailOperationTreeNode(self):
        self.nodeType = GlobalConstants.treeBranchType
        self.directiveType = "mailOperation"
        self.setText(0,"邮件操作")
        self.createTreeNode(GlobalConstants.treeLeafType,
                            self, mailOperationConstants.MailOperationConstants.sendingMailDirective, "发送邮件")
        self.createTreeNode(GlobalConstants.treeLeafType,
                            self, mailOperationConstants.MailOperationConstants.receivingMailDirective, "接收邮件")
